<template>
  <div class="basic-container"
       :class="{'basic-container--block':block}">
    <!-- <el-card> -->
      <slot></slot>
    <!-- </el-card> -->
  </div>
</template>

<script>
export default {
  name: "basicContainer",
  props: {
    block: {
      type: Boolean,
      default: false,
    }
  }
};
</script>

<style lang="scss">
.basic-container {
  padding: 8px 10px;
  border-radius: 10px;
  box-sizing: border-box;
  .el-card {
    width: 100%;
  }
  &:first-child {
    padding-top: 0;
  }
  &--block {
    height: 100%;
    .el-card {
      height: 100%;
    }
  }
  .el-pagination.is-background .el-pager li {
    background-color: #f4f4f9;
    border: 1px solid #dce0e6
  }

  .el-pagination.is-background .el-pager li{
    color: #637280 !important
  }
  .avue-crud__tip{
    display: none !important
  }
  .el-button--primary{
  min-width: 82px;
    min-height: 32px;
    border: 1px solid #d5dced;
    color: #415378;
    background: -o-linear-gradient(291deg, #F5F8FF 0%, #E8EFFF 100%);
    background: linear-gradient(159deg, #F5F8FF 0%, #E8EFFF 100%);
    font-size: 12px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
  }
  
  .el-button--primary:focus{
    border-color: #9AA8CA;
    background: -webkit-gradient(linear, left bottom, left top, from(#C8D5EF), to(#DDE7FB));
    background: -o-linear-gradient(bottom, #C8D5EF 0%, #DDE7FB 100%);
    background: linear-gradient(360deg, #C8D5EF 0%, #DDE7FB 100%);
  }
  .el-button--primary:hover{
    border-color: #9AA8CA

  }
  .avue-crud__pagination{
   text-align: left;
   padding: 0 0;
   margin-top: 10px;
   color: #637280;
  }
 .el-pagination {
  font-size: 12px !important;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #637280;
  margin-top: 10px;
  padding-left: 0;
  padding-right: 0;
}
.pagerIcon {
  font-size: 18px;
  color: #c6ccd1;
  cursor: pointer;
  margin-top: 5px;
}
.go {
  transform: rotate(360deg);
  transition: all .5s;
}
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: #f4f4f9;
  color: #637280;
  border: 1px solid #dce0e6;
}
 .el-pagination.is-background .el-pager li:not(.disabled):hover {
  color: #637280;
}
//  左右按钮和数字小li
 .el-pagination.is-background .btn-next,
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .el-pager li {
  background-color: #fff;
  height: 26px;
  color: #606266;
  border-radius: 4px;
  border: 1px solid #dce0e6;
  margin:0 3px;
  i{color: #C7CFDA;}
}
.el-pagination >.btn-prev{
  margin-left:0!important ;
}
 .el-pagination.is-background .el-pager li {
  line-height: 26px;
  font-size: 12px !important;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #637280 !important;
  background: #fff;
  vertical-align: middle;
}
// 下拉框样式
.el-pagination .el-select .el-input .el-input__inner {
  padding-right: 25px;
  height: 26px;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #dce0e6;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 4px;
  font-size: 12px;
  color: #637280;
}
// 跳转部分
.el-pagination__jump {
  color: #637280 !important;
  margin-right: 15px;
  font-size: 12px !important;
  margin-left: 14px
}
// 跳转输入框样式
.el-pagination__editor.el-input .el-input__inner {
  height: 26px;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #dce0e6;
  color: #637280;
  font-size: 12px;
  margin-right: 15px;
}
.el-pagination button,
.el-pagination span:not([class*="suffix"]) {
  display: inline-block;
  font-size: 12px;
  min-width: 35.5px;
  height: 28px;
  line-height: 28px;
  vertical-align: middle;
  box-sizing: border-box;
}
.el-pagination__total {
  margin-right: 0;
  font-size: 12px !important;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #939eab;
}
.el-pagination__total::after {
  content: '\8bb0\5f55';// 使用unicode，避免显示乱码
}
.el-pagination .el-input__suffix {
    top: -2px;
}
.el-pagination__sizes{
  margin:0
}

}
</style>
